package com.qqt.csr.im.dto;

import com.qqt.csr.im.entity.Account;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yang hao
 * @Date: 2024/10/15 16:32
 * @Description: 绑定会话
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Schema(description = "绑定会话")
public class BindDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "当前账户不能为空")
    @Schema(description = "当前账户", requiredMode = Schema.RequiredMode.REQUIRED)
    private Account initiator;

    @NotNull(message = "目标账户不能为空")
    @Schema(description = "目标账户", requiredMode = Schema.RequiredMode.REQUIRED)
    private Account recipient;

    @Schema(description = "房间扩展参数")
    private String roomExt;

    @Schema(description = "会话扩展参数")
    private String conversationExt;

}
